<template>
  <web-view :src="url"></web-view>
</template>

<script>
import Taro from '@tarojs/taro'
export default {
  components: {
  },
  data() {
    return {
      url:'',
      title:''
    }
  },
   created() {
    // 建议在页面初始化时把 getCurrentInstance() 的结果保存下来供后面使用，
    // 而不是频繁地调用此 API
    this.$instance = Taro.getCurrentInstance()
  },
  mounted() {
     let url = this.$instance.router.params.url;
    //  console.log("webview获取跳转路径==>",url,this.$instance.router.params.title )
     this.url = decodeURIComponent(url);
     this.title = this.$instance.router.params.title ||'SIGS迎新';
    //  console.log("webview解码路径==>",this.url)

     Taro.setNavigationBarTitle({
      title: this.title
    })

  },
   
  methods: {

  }
}
</script>